﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SPDocumentor;

namespace UnitTestSPDocumentor
{
    [TestClass]
    public class LoadFarmUnitTest
    {
        [TestMethod]
        public void TestMethod1()
        {
            SharePointFarmDocumentor Doc = new SharePointFarmDocumentor();
            Doc.DocumentGeneratorEvent += Doc_DocumentGeneratorEvent;
            SPDocumentOption docOptions = new SPDocumentOption();
            docOptions.DocumentPath = "DocGen.docx";
            docOptions.DocumentPropertiesCreator = "Xavier VANNESTE";
            docOptions.DocumentPropertiesDescription = "Description";
            docOptions.DocumentPropertiesLastModifiedBy = "Xavier VANNESTE";
            docOptions.DocumentPropertiesSubject = "Audit";
            docOptions.DocumentPropertiesTitle = "Audit SharePoint";
            Doc.GenerateDocument(docOptions);
        }

        void Doc_DocumentGeneratorEvent(object sender, DocumentGeneratorPlugins.DocumentGeneratorEventArgs e)
        {
            
        }
    }
}
